﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Collections.Generic;

namespace PSE.Framework.UI.Controls.SmartClient
{
    public class WindowHeader : Control  
    {

        public WindowHeader() { }

        
        public WindowHeader(string companyName, string userName, List<string> menuPath)
        {
            //if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            //    return;

            this.CompanyName = companyName;
            this.UserName = userName;
            this.MenuPath = menuPath;           
        }


        public string CompanyName
        {
            get { return (string)GetValue(CompanyProperty); }
            set { SetValue(CompanyProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Company.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty CompanyProperty =
            DependencyProperty.Register("CompanyName", typeof(string), typeof(WindowHeader), new FrameworkPropertyMetadata(string.Empty));



        public string UserName
        {
            get { return (string)GetValue(UserNameProperty); }
            set { SetValue(UserNameProperty, value); }
        }

        // Using a DependencyProperty as the backing store for UserName.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty UserNameProperty =
            DependencyProperty.Register("UserName", typeof(string), typeof(WindowHeader), new FrameworkPropertyMetadata(string.Empty));



        public List<string> MenuPath
        {
            get { return (List<string>)GetValue(MenuPathProperty); }
            set { SetValue(MenuPathProperty, value); }
        }

        // Using a DependencyProperty as the backing store for MenuPath.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty MenuPathProperty =
            DependencyProperty.Register("MenuPath", typeof(List<string>), typeof(WindowHeader), new FrameworkPropertyMetadata(new List<string>()));

    }
}
